<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>页面导航</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('Member/add')}" class="button button-small border-green">广告位</a>
            <a href="{:U('Member/add')}" class="button button-small border-green">广告管理</a>
            <a href="{:U('Member/add')}" class="button button-small border-green">新增广告</a>
        </div>
        <div class="fixed-empty"></div>
        <form id="myform" name="myform" method="post" action="{:U('advAdd')}">
            <table class="table tb-type2" id="main_table">
                <tbody>
                    <tr>
                        <td width="10%" class="required"><label class="validation" for="adv_name">广告名称:</label></td>
                        <td width="30%" class="vatop rowform"><input type="text" name="adv_name" id="adv_name" class="input input_big"></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="ap_id">选择广告位:</label></td>
                        <td class="vatop rowform">
                            <select name="ap_id" id="ap_id" class="querySelect">
                                <option value="0" ap_type="0">请选择</option>
                                <foreach item="v" name="advPosition">
                                    <option value="{$v['ap_id']}" ap_type="{$v['ap_class']}" ap_width="{$v['ap_width']}" <if condition="$v['ap_id'] eq I('ap_id')">selected</if>>{$v['ap_name']}</option>
                                </foreach>
                            </select>
                            <input type="hidden" name="aptype_hidden" id="aptype_hidden"/>
                        <td class="vatop tips"></td>
                    </tr>
                    <!--
                    <tr>
                        <td class="required"><label class="validation" for="adv_start_time">开始时间:</label></td>
                    </tr>
                    <tr>
                        <td class="vatop rowform"><input type="text" value="" name="adv_start_time" id="adv_start_time" class="txt date hasDatepicker" readonly="readonly"></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="adv_end_time">结束时间:</label></td>
                    </tr>
                    <tr>
                        <td class="vatop rowform"><input type="text" value="" name="adv_end_time" id="adv_end_time" class="txt date hasDatepicker" readonly="readonly"></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="adv_end_time">背景色:</label></td>
                    </tr>
                    <tr>
                        <td class="vatop rowform"><input type="text" class="form-control" name="other" size="10" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    -->
                    <tr>
                        <td class="required"><label class="validation" for="adv_end_time">排序:</label></td>
                        <td class="vatop rowform"><input type="text" class="form-control" name="slide_sort" size="10" value="{$adv['slide_sort']}" /></td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label for="adv_pc_pic">图片上传:</label></td>
                        <td class="vatop rowform">
                            <!-- 图片上传按钮 -->
                            <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                            <input class="fileupload" type="file" name="image" data-name="adv_pc_pic" data-num="1" />
                            </a>
                            <!-- 图片展示模块 -->
                            <div class="files"></div>
                            <div style="clear:both;"></div>
                            <!-- 图片上传进度条模块 -->
                            <div class="up_progress"><div class="progress-bar"></div></div>
                            <!-- 图片上传结束 -->
                        </td>
                        <td class="vatop tips">系统支持的图片格式为:gif,jpg,jpeg,png</td>
                    </tr>
                    <tr>
                        <td class="required"><label for="adv_pc_url">链接地址: </label></td>
                        <td class="vatop rowform"><input type="text" name="adv_pc_url" class="input input_big" id="type_adv_pic_url"></td>
                        <td class="vatop tips">链接地址请不要加http://</td>
                    </tr>
<!--                    <tr>
                        <td class="required"><label for="adv_mb_pic">图片上传(手机端):</label></td>
                        <td class="vatop rowform">
                             图片上传按钮 
                            <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                            <input class="fileupload" type="file" name="image" data-name="adv_mb_pic" data-num="1" />
                            </a>
                             图片展示模块 
                            <div class="files"></div>
                            <div style="clear:both;"></div>
                             图片上传进度条模块 
                            <div class="up_progress"><div class="progress-bar"></div></div>
                             图片上传结束 
                        </td>
                        <td class="vatop tips">系统支持的图片格式为:gif,jpg,jpeg,png</td>
                    </tr>
                    <tr>
                        <td class="required"><label for="adv_mb_url">链接地址(手机端): </label></td>
                        <td class="vatop rowform"><input type="text" name="adv_mb_url" class="input input_big" id="type_adv_pic_url"></td>
                        <td class="vatop tips">链接地址请不要加http://</td>
                    </tr>-->
                </tbody>

                <tfoot>
                    <tr class="tfoot">
                        <td colspan="3"><input type="submit" class="button bg-main" value="提交"></td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript" src="__JS__/jquery.uploads.js"></script>
<script type="text/javascript">
    $('#myform').layer({});
    $('#adv_start_time').duxTime({
        timepicker: false
    });
    $('#adv_end_time').duxTime({
        timepicker: false
    });
</script>
